package com.teaching.teachingsupport.common.pojo.dataobject;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.time.LocalDateTime;

/**
 * 待办事项
 */
@Data
@TableName("todo")
public class Todo {
    /**
     * 自增待办ID
     */
    @TableId(type = IdType.AUTO)
    private Long todoId;
    
    /**
     * 关联用户ID
     */
    @TableField("user_id")
    private Long userId;
    
    /**
     * 待办标题
     */
    @TableField("title")
    private String title;
    
    /**
     * 待办描述
     */
    @TableField("description")
    private String description;
    
    /**
     * 截止时间
     */
    @TableField("deadline")
    private LocalDateTime deadline;
    
    /**
     * 状态（0-未完成，1-已完成）
     */
    @TableField("status")
    private Integer status;
    
    /**
     * 创建时间
     */
    @TableField("created_time")
    private LocalDateTime createdTime;

    @TableField(exist = false)
    private String creatorName;
    
    @TableField(exist = false)
    private String assigneeName;
}
